package com.ytc.menu.service.Impl;

import com.ytc.menu.mapper.MenuMapper;
import com.ytc.menu.model.Menu;
import com.ytc.menu.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MenuServiceImpl implements MenuService {

    @Autowired
    private MenuMapper menuMapper;

    @Override
    public List<Menu> getMenu(Integer role){
        return menuMapper.getMenu(role);

    }
}
